'use strict';

/**
 * @ngdoc function
 * @name newWfApp.controller:MainCtrl
 * @description
 * # MainCtrl
 * Controller of the newWfApp
 */
angular.module('newWfApp')
        .controller('TaskDetailController', function ($scope, $http, $routeParams) {
            $http.get('http://10.28.6.9:8080/NDK_WF_AL/task/getAutomaticTask/' + $routeParams.taskId)
                    .then(function (response) {
                        $scope.task = response.data;
                    });
                    
        });

